// Global namespace
var MasterStroke = MasterStroke || {};
MasterStroke.ViewModels = MasterStroke.ViewModels || {};

define
(    
    function()
    {
        MasterStroke.ViewModels.IndexViewModel = function()
        {
            this.start = function()
            {
                $(document).ready(function()
                {
                    var backgroundImage = "images/background-sketch.jpg";

                    $("<img/>")
                    .attr("src", backgroundImage)
                    .load(function() 
                        {
                            var $mainContent = $("#mainContent");
                            $mainContent.height(this.height);
                            $mainContent.width(this.width);
                            $mainContent.css("background-image", "url(" + backgroundImage + ")");
                        });
                });
            };
        };

        return MasterStroke.ViewModels.IndexViewModel;
    }
);